
'use strict';
const express=require('express');
const path=require('path');
const workRouter=express.Router();

const workCtrl=require(path.join(__dirname,"../controllers/workController.js"));



// 作业列表

workRouter.get('/work_list',workCtrl.workList);

// 作业添加页面

workRouter.get('/work_add',workCtrl.workAdd);
workRouter.post('/work_add',workCtrl.workAddData);

// 旧数据显示

workRouter.get('/work_edite/:work_id',workCtrl.workEdite);

workRouter.post('/work_edite/:work_id',workCtrl.workEditeAdd);


// 删除作业

workRouter.get('/work_delete/:work_id',workCtrl.workDelete);




module.exports=workRouter;

